package com.atguigu.l_collect;

import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Demo1 {
    public static void main(String[] args) {
        //准备数据
        Stream<Integer> stream = Stream.of(1, 2, 3, 4,4, 5,5, 6,6 ,7,7);

        //跳过车间
        Stream<Integer> stream1 = stream.skip(3);

        //收集成集合
        Set<Integer> set = stream1.collect(Collectors.toSet());

        System.out.println("set = " + set);

        System.out.println("set.getClass() = " + set.getClass());

    }
}
